<template>
	<view class="base-cloud">
		
		
		<view class="h100p whiteBg w100p shadow pd10 mt10 rds5">
			<view class="fz16  pd10 bold  brown bb">{{ title }}</view>
			<view class="fz14  pt15 fixAutoNoPd ">
				
				<inputs name="title" titleWidth="0" type="text" v-model="keys"  placeholder="关键字搜索" ></inputs>
				<view class="w55 pt10" >
					<view class="btn rds2 line yellowBg mr20" @tap="confirm">
						<view class="pt1 ">
							搜索
						</view>
					</view>
				</view>
				
				
			</view>
		
		</view>
	
		<alerts ref="alerts" width="250px" height="120px">请输入查询关键字</alerts>
	</view>
</template>

<script>
	
	export default {
		name: 'kenyCateList',		
		props: {
			title: {
				type: String,
				default: '搜索'
			}
			
		},
		data() {
			return {				
				conditions: {},
				loading: true ,				
				datalist: [],
				keys:''
			}
		},	
		
		created() {			
			
		},
		
		methods: {
			
			gotlist(e,name){
				
				uni.navigateTo({
					url: "/pages/web/list?id="+e+"&name="+name
				})
				
			},
			confirm(){
				if(!this.keys){
					this.$refs.alerts.show(); 
					return;
				}
				
				uni.navigateTo({
					url: "/pages/web/search?&keys="+this.keys
				})
			}
			
			
		}
	}
</script>
